package router

import (
	"github.com/labstack/echo/v4"
	"ruoyi-go-echo-ddd/internal/infrastructure/http/handler"
)

// NewMinioRouter minio控制器请求路由
func NewMinioRouter(group *echo.Group, minioHandler *handler.MinioHandler) {
	minioGroup := group.Group("/minio")
	minioGroup.POST("/upload", minioHandler.UploadHandler)
	minioGroup.POST("/upload/files", minioHandler.UploadFilesHandler)
	minioGroup.POST("/delete", minioHandler.DeleteHandler)
	minioGroup.POST("/upload/prefix", minioHandler.UploadPrefixHandler)
	minioGroup.GET("/download/byte", minioHandler.DownloadByteHandler)
	minioGroup.GET("/download/local", minioHandler.DownloadLocalHandler)
	minioGroup.GET("/download/response", minioHandler.DownloadResponseHandler)
	minioGroup.POST("/download/zip", minioHandler.DownloadListToZipHandler)
	minioGroup.POST("/download/zip/async", minioHandler.DownloadListToZipParallelHandler)
}
